package com.zhibang.sinocare.common.domian;
/**
 * 检测者
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("scc_patient")
public class Detection implements Serializable {
    private static final long serialVersionUID = 4978768410401833707L;
    @TableId(value ="patient_id" ,type = IdType.ASSIGN_ID)
    //属性
    private Integer patientId; //检测者id
    private String patientCode;  //检测者编号
    private Integer userId;  // 用户id
    private String customerCode; //客户编号
    private String name; //姓名
    private String phone;  //联系电话
    private Integer sex; //性别
    private Integer age; //年龄
    private String idCard; //身份证号
    private double weight; //体重
    private double height; //身高

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime; //创建时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime; //修改时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastTestTime; //最后检测时间
    private Integer countOfTest; //检测次数
    private Integer status; //状态





}
